﻿using System;
namespace FrankJie.Model
{
	/// <summary>
	/// 文章实体类
	/// </summary>
	[Serializable]
	public partial class PostInfo
	{
        private int _id;
        private string _title = "";
        private string _excerpt = "";
        private string _contents = "";
        private string _tag = "";
        private int _status = 0;
        private string _password = "";
        private DateTime _createtime = DateTime.Now;
        private DateTime _updatetime = DateTime.Now;
        private string _guid = "";
        private bool _comment = false;
        private int _commentcount = 0;
        private int _viewCount = 0;
        private int _mid = 0;
        /// <summary>
        /// 文章ID
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 文章标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 文章简介 用于head描述
        /// </summary>
        public string Excerpt
        {
            set { _excerpt = value; }
            get { return _excerpt; }
        }
        /// <summary>
        /// 文章内容
        /// </summary>
        public string Contents
        {
            set { _contents = value; }
            get { return _contents; }
        }
        /// <summary>
        /// 标签 以,隔开
        /// </summary>
        public string Tag
        {
            set { _tag = value; }
            get { return _tag; }
        }
        /// <summary>
        /// 文章状态 0为正常 1为草稿 2为私有
        /// </summary>
        public int Status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 文章查看密码
        /// </summary>
        public string Password
        {
            set { _password = value; }
            get { return _password; }
        }
        /// <summary>
        /// 文章创建时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 文章最后修改时间
        /// </summary>
        public DateTime UpdateTime
        {
            set { _updatetime = value; }
            get { return _updatetime; }
        }
        /// <summary>
        /// 文章对应的GUID
        /// </summary>
        public string Guid
        {
            set { _guid = value; }
            get { return _guid; }
        }
        /// <summary>
        /// 文章是否允许评论 0为True 1为False
        /// </summary>
        public bool Comment
        {
            set { _comment = value; }
            get { return _comment; }
        }
        /// <summary>
        /// 文章评论数
        /// </summary>
        public int Commentcount
        {
            set { _commentcount = value; }
            get { return _commentcount; }
        }
        /// <summary>
        /// 浏览数
        /// </summary>
        public int ViewCount
        {
            set { _viewCount = value; }
            get { return _viewCount; }
        }
        /// <summary>
        /// 管理员ID
        /// </summary>
        public int MId
        {
            set { _mid = value; }
            get { return _mid; }
        }
	}
}

